package gestioninscription;

import javax.swing.table.AbstractTableModel;

public class ModeleJTableListClient extends AbstractTableModel{
    
        private String[] columnNames = {"Matricule","Nom","Taux horaire"};
    	private Object[][] data=new Object[20][3];
	public int getColumnCount()
	{
		return columnNames.length;
	}
	public int getRowCount()
	{
		return data.length;
	}
	public String getColumnName(int col)
	{
		return columnNames[col];
	}
	public Object getValueAt(int row, int col)
	{
		return data[row][col];
	}
	
	public boolean isCellEditable(int row, int col)
	{
		return (col < 2);
	}
	public void setValueAt(Object value, int row, int col)
	{
            
            data[row][col] = value;
            fireTableCellUpdated(row,col);
            //fireTableDataChanged();
	}
        
}

